package cc.yiueil.configuration;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

@Configuration
public class RetryerConfiguration {

    @Bean
    public Retryer retryer() {
        return new Retryer.Default(1000L, TimeUnit.SECONDS.toMillis(10L), 3);
    }
}
